//
//  LHPhotoTableCell.m
//  WXYView
//
//  Created by lehuo on 2017/1/11.
//  Copyright © 2017年 lehuo. All rights reserved.
//

#import "LHPhotoTableCell.h"
#import "PhotoGroupModel.h"
@interface LHPhotoTableCell()
@property (weak, nonatomic) IBOutlet UIImageView *thumbImgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *numLabel;

@end
@implementation LHPhotoTableCell

- (void)setCellValue:(id)model
{
    PhotoGroupModel *groupModel = model;
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    self.thumbImgView.image = [UIImage imageWithCGImage:[groupModel.group posterImage]];
    
    NSString *title = groupModel.localizedTitle;
    
//    if ([title isEqualToString:@"Camera Roll"])
//    {
//        title = @"相册";
//    }
    self.titleLabel.text = [NSString stringWithFormat:@"%@",title];
    self.numLabel.text = [NSString stringWithFormat:@" %zd",[groupModel.group numberOfAssets]];
}

@end
